package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.pojo.User;

import java.util.List;
import java.util.Map;
import java.util.Set;

public interface UserService {
    public User findByUsername(String username);

    /*用户管理接口*/
    public PageResult pageQuery(QueryPageBean queryPageBean);
    public void add(User user,Integer[] menuIds);
    public User findByUserId(Integer userId);
    public void delete(Integer userId);
    public void edit(User user,Integer[] menuIds);
    public Set<Integer> findRoleIds(Integer id);

    User findByUserName(String username);

    //根据用户id查询到套餐数据
    List<Map<String,Object>> findUserMenu(Integer id);

}
